import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/component1',
    name: 'component1',
    component: () => import(/* webpackChunkName: "component1" */ '../views/component1.vue')
  },
  {
    path: '/component2',
    name: 'component2',
    component: () => import(/* webpackChunkName: "component2" */ '../views/component2.vue')
  }

]

const router = new VueRouter({
  routes
})

export default router
